﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCMyArt.ascx.cs" Inherits="WebAppArtreve.views.shared.components.arts.WUCMyArt" %>
<%@ Register src="WUCArtImage.ascx" tagname="WUCArtImage" tagprefix="uc1" %>
<!--<a class="actionbar" href="AddArt.aspx">Add art</a>-->
<ul id="jqueryMenu">
    <li>
        <a href="#" class="all">
            All
        </a> 
        <!--<a href="#" class="deletedArt">
            Deleted
        </a> -->
    </li>
<asp:ListView ID="ListView1" runat="server" 
DataSourceID="ODSMyCategoriesALL">
    <LayoutTemplate>            
        <li id="itemPlaceholder" runat="server" />    
    </LayoutTemplate>
    <ItemTemplate>
        <li>
            <a href="#" class="<%# Eval("CategoryName")%>" >
                <%# Eval("CategoryName")%>
            </a>
        </li>
    </ItemTemplate>
</asp:ListView>
</ul>
<div id="links">
<div class="linkAddArt">
    Add art
    <a href="AddOrUpdateArt.aspx"><img alt="add art" 
    class="" src="../../../../styles/assets/images/add.png" /></a>
</div>
<asp:ListView ID="ListViewMyArt" runat="server" 
DataSourceID="ODSMyArtsALL">
    <LayoutTemplate>
        <article id="itemPlaceholder" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>
        <article class="<%# Eval("CategoryName")%>">
            <header>
            <a href="AddOrUpdateArt.aspx?id=<%# Eval("Id")%>">
                <uc1:WUCArtImage ArtId='<%# Eval("Id")%>' ID="WUCArtImage1" runat="server" />
                <h3><span class="spanCategoryName"><%# Eval("CategoryName")%></span> : <%# Eval("Name") %></h3>
                <asp:LinkButton ID="linkRemoveArtFromArtboard" runat="server" 
    CommandArgument='<%# Eval("Id")%>' 
    oncommand="linkRemoveArtFromArtboard_Command">Remove art
            </asp:LinkButton>
            </a>
                <section class="article-info">
                </section>
            </header> 
            <section class="art-description">
            </section>
            <section class="art-image">
            <a href="Art.aspx?id=<%# Eval("Id")%>">
                
            </a>
            </section>
        </article>
    </ItemTemplate>
</asp:ListView>
<!--<asp:ListView ID="ListViewMyDeletedArt" runat="server" 
DataSourceID="ODSMyDeletedArtsALL">
    <LayoutTemplate>
        <article id="itemPlaceholder" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>
        <article class="deletedArt <%# Eval("CategoryName")%>">
            <header>
            <a href="AddOrUpdateArt.aspx?id=<%# Eval("Id")%>">
                <uc1:WUCArtImage ArtId='<%# Eval("Id")%>' ID="WUCArtImage1" runat="server" />
                <h3><span class="spanCategoryName"><%# Eval("CategoryName")%></span> : <%# Eval("Name") %></h3>
            </a>
                <section class="article-info">
                </section>
            </header> 
            <section class="art-description">
            </section>
            <section class="art-image">
            <a href="Art.aspx?id=<%# Eval("Id")%>">
                
            </a>
            </section>
        </article>
    </ItemTemplate>
</asp:ListView>-->
</div>
<asp:ObjectDataSource ID="ODSMyArtsALL" 
    runat="server" 
    TypeName="CLibArtreve.bll.ArtBLL"
    DataObjectTypeName="CLibArtreve.models.Art"  
    SelectMethod="GetArtByUserId"
    OnObjectCreating="ODSMyArtsALL_OnObjectCreating" 
    onselecting="ODSMyArtsALL_Selecting">
    
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="Id" Type="Int64" DefaultValue="0" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="ODSMyDeletedArtsALL" 
    runat="server" 
    TypeName="CLibArtreve.bll.ArtBLL"
    DataObjectTypeName="CLibArtreve.models.Art"  
    SelectMethod="GetDeletedArtByUserId"
    OnObjectCreating="ODSMyDeletedArtsALL_OnObjectCreating" onselecting="ODSMyDeletedArtsALL_Selecting"
>
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="Id" Type="Int64" DefaultValue="0" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="ODSMyCategoriesALL" 
    runat="server" 
    TypeName="CLibArtreve.bll.CategoryBLL"
    DataObjectTypeName="CLibArtreve.models.Category"  
    SelectMethod="GetCategoryByUserId"
    OnObjectCreating="ODSMyCategoriesALL_OnObjectCreating" 
    onselecting="ODSMyCategoriesALL_Selecting">
    
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="Id" Type="Int64" DefaultValue="0" />
    </SelectParameters>
</asp:ObjectDataSource>